import { Select, SelectProps } from 'antd';
import { FC } from 'react';

import { useDictStore } from '@/store/dict';

export const OperatorSelector: FC<SelectProps> = memo((props) => {
  const { dictOperatorOptions } = useDictStore();
  return <Select placeholder="请选择操作符" {...props} options={dictOperatorOptions} />;
});
